Optimal. Leaf size=11 \[ \tanh ^{-1}\left (\sqrt {\cos ^2(x)+1}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {3194, 63, 207} \[ \tanh ^{-1}\left (\sqrt {\cos ^2(x)+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 207
Rule 3194
Rubi steps
\begin {align*} \int \frac {\tan (x)}{\sqrt {1+\cos ^2(x)}} \, dx &=-\left (\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{x \sqrt {1+x}} \, dx,x,\cos ^2(x)\right )\right )\\ &=-\operatorname {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\sqrt {1+\cos ^2(x)}\right )\\ &=\tanh ^{-1}\left (\sqrt {1+\cos ^2(x)}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 11, normalized size = 1.00 \[ \tanh ^{-1}\left (\sqrt {\cos ^2(x)+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.67, size = 16, normalized size = 1.45 \[ \log \left (\frac {\sqrt {\cos \relax (x)^{2} + 1} + 1}{\cos \relax (x)}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.37, size = 27, normalized size = 2.45 \[ \frac {1}{2} \, \log \left (\sqrt {\cos \relax (x)^{2} + 1} + 1\right ) - \frac {1}{2} \, \log \left (\sqrt {\cos \relax (x)^{2} + 1} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.09, size = 10, normalized size = 0.91 \[ \arctanh \left (\frac {1}{\sqrt {1+\cos ^{2}\relax (x )}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.88, size = 60, normalized size = 5.45 \[ \frac {1}{2} \, \log \left (\frac {\sqrt {-\sin \relax (x)^{2} + 2}}{\sin \relax (x) + 1} + \frac {1}{\sin \relax (x) + 1} - 1\right ) + \frac {1}{2} \, \log \left (-\frac {\sqrt {-\sin \relax (x)^{2} + 2}}{\sin \relax (x) - 1} - \frac {1}{\sin \relax (x) - 1} + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.09 \[ \int \frac {\mathrm {tan}\relax (x)}{\sqrt {{\cos \relax (x)}^2+1}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tan {\relax (x )}}{\sqrt {\cos ^{2}{\relax (x )} + 1}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________